import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/global.css'
import request from './utils/request';
// 引入jQuery、bootstrap
import $ from 'jquery'
import 'bootstrap'
import 'element-ui/lib/theme-chalk/base.css';
// 引入bootstrap样式
import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap/dist/js/bootstrap.min.js'
//引入图标样式js
import '../src/assets/js/iconfont'
import { Message } from 'element-ui'

// 全局注册 $
Vue.prototype.$message = Message
Vue.prototype.$ = $

Vue.config.productionTip = false

Vue.use(ElementUI,{size:"mini"});

Vue.prototype.request=request
window.addEventListener('popstate',function(e){
  router.isBack = true
},false)
new Vue({
  router,
  store,
  render: h => h(App),
  beforeCreate(){
    Vue.prototype.$bus=this
  }
}).$mount('#app')
